import request from '@/utils/request'
export default{
  //小节添加
  addvideodata(eduVideo){
    return request({
      url: `/eduservice/video/addVideo`,
      method: 'post',
      data: eduVideo
    })
  },

  updateVideo(eduVideo){
    return request({
      url:`/eduservice/video/updateVideo`,
      method: 'post',
      data: eduVideo
    })
  },

  delVideo(videoId){
    return request({
      url:`eduservice/video/delVideo/${videoId}`,
      method: 'delete'
    })
  },

  getByvideo(id) {
    return request({
      url: `/eduservice/video/getById/${id}`,
      method: 'get'
    })
  },
  delvodVideo(videoId){
    return request({
      url: `eduservice/video/delVideo/${videoId}`,
      method: 'delete'
    })
  }
}
